package com.kun.entity;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * 角色实体类
 * @author Administrator
 *
 */
public class SysRoleEntity {
	
	private Integer sysRoleId ;
	private String sysRoleName ;
	private String sysRoleDesc ;
	private Date sysRoleCreateDate ;
	private boolean have;
	public boolean isHave() {
		return have;
	}
	public void setHave(boolean have) {
		this.have = have;
	}
	//角色有多个权限
	private Set<SysAuthEntity> auths = new HashSet<SysAuthEntity>();
	//一个角色可以有多个用户支配
	private Set<SysUserEntity> users = new HashSet<SysUserEntity>();
	
	public Set<SysUserEntity> getUsers() {
		return users;
	}
	public void setUsers(Set<SysUserEntity> users) {
		this.users = users;
	}
	public Set<SysAuthEntity> getAuths() {
		return auths;
	}
	public void setAuths(Set<SysAuthEntity> auths) {
		this.auths = auths;
	}
	private boolean having;

	public boolean isHaving() {
		return having;
	}
	public void setHaving(boolean having) {
		this.having = having;
	}
	
	public Integer getSysRoleId() {
		return sysRoleId;
	}
	public void setSysRoleId(Integer sysRoleId) {
		this.sysRoleId = sysRoleId;
	}
	public String getSysRoleName() {
		return sysRoleName;
	}
	public void setSysRoleName(String sysRoleName) {
		this.sysRoleName = sysRoleName;
	}
	public String getSysRoleDesc() {
		return sysRoleDesc;
	}
	public void setSysRoleDesc(String sysRoleDesc) {
		this.sysRoleDesc = sysRoleDesc;
	}
	public Date getSysRoleCreateDate() {
		return sysRoleCreateDate;
	}
	public void setSysRoleCreateDate(Date sysRoleCreateDate) {
		this.sysRoleCreateDate = sysRoleCreateDate;
	}
	
	
}
